From ad6aa72b7fdd244daa7a4e8237b84c5276fee133 Mon Sep 17 00:00:00 2001 From: Alastair Tse Date: Thu, 5 Oct 2006 20:03:16 +0100 Subject: [PATCH] [XEND] Fix shutdown reasons from Xen API Signed-off-by: Alastair Tse --- tools/python/xen/xend/XendAPI.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/python/xen/xend/XendAPI.py b/tools/python/xen/xend/XendAPI.py index cc78cff9dd..f89453bad8 100644 --- a/tools/python/xen/xend/XendAPI.py +++ b/tools/python/xen/xend/XendAPI.py @@ -900,12 +900,12 @@ class XendAPI: def vm_clean_reboot(self, session, vm_ref): xendom = XendDomain.instance() xeninfo = xendom.get_vm_by_uuid(vm_ref) - xeninfo.shutdown(XendDomainInfo.DOMAIN_REBOOT) + xeninfo.shutdown("reboot") return xen_api_success_void() def vm_clean_shutdown(self, session, vm_ref): xendom = XendDomain.instance() xeninfo = xendom.get_vm_by_uuid(vm_ref) - xeninfo.shutdown(XendDomainInfo.DOMAIN_HALT) + xeninfo.shutdown("poweroff") return xen_api_success_void() def vm_clone(self, session, vm_ref): return xen_api_error(XEND_ERROR_UNSUPPORTED) -- 2.30.2